import requests

# res = requests.get('http://httpbin.org/get?username=zs&password=123456')
# print(res.json())
# res = requests.get('http://httpbin.org/get', params={'username': 'zs', 'password': '123456'})
# print(res.json())
res = requests.get('http://httpbin.org/get?username=zs', params={'password': '123456'})
print(res.json())


# # 'form': {'password': '123456', 'username': 'zs'}, 'Content-Type': 'application/x-www-form-urlencoded'
# res = requests.post('http://httpbin.org/post', data={'username': 'zs', 'password': '123456'})
# print(res.json())
#
# # 'data': '{"username": "zs", "password": "123456"}' 'Content-Type': 'application/json'
# res = requests.post('http://httpbin.org/post', json={'username': 'zs', 'password': '123456'})
# print(res.json())
